const router = require('koa-router')()
const { add, update, del, list, delAll } = require('../controller/todolist')

router.prefix('/todolist')

router.post("/add", add)

router.get("/list",list )

router.put("/update", update)

router.delete("/del", del)

router.delete("/delAll", delAll)



module.exports = router
